home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Interim Executive Decision / patch / (Appearance Mangler) / source code / A4Code.c next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  403 b   |  31 lines  |  [TEXT/CWIE]

  1. #include "A4Code.h"
  2.  
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. #if !defined(__POWERPC__) && !defined(__CFM68K__)
  8.  
  9.     void RememberA4(void);
  10.     
  11.     asm long SetUpA4(void)
  12.     {
  13.         move.l    a4,d0
  14.         lea        __storage,a4
  15.         move.l    (a4),a4
  16.         rts
  17.     
  18.     __storage:    dc.l    0    /* this storage is only referenced thru data cache */
  19.     
  20.         entry    RememberA4
  21.         lea        __storage,a0
  22.         move.l    a4,(a0)
  23.         rts
  24.     }
  25.     
  26. #endif
  27.  
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31.